home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / program / btclss12.lha / ButClass11 / Include / ButClass.h
C/C++ Source or Header  |  1995-09-01  |  2KB  |  90 lines

  1. #ifndef BUTCLASS_H
  2. #define BUTCLASS_H
  3.  
  4. #ifndef EXEC_TYPES_H
  5. #include <exec/types.h>
  6. #endif
  7.  
  8. #ifndef INTUITION_CLASSES_H
  9. #include <intuition/classes.h>
  10. #endif
  11.  
  12. #ifndef UTILITY_TAGITEM_H
  13. #include <utility/tagitem.h>
  14. #endif
  15.  
  16. /* Tags */
  17. #define BUT_TB                  TAG_USER+0x70000
  18.  
  19. #define BUT_Label               (BUT_TB+1)              /* ISG-- */
  20. #define BUT_ClipText            (BUT_TB+2)              /* I-G-- */
  21. #define BUT_Justify             (BUT_TB+3)              /* I-G-- */
  22.  
  23.  
  24. #define BUT_LabelPen            (BUT_TB+4)              /* ISG-- */
  25. #define BUT_SelectedLabelPen    (BUT_TB+5)              /* ISG-- */
  26.  
  27. #define BUT_TextFont            (BUT_TB+6)              /* I---- */
  28. #define BUT_Underscore          (BUT_TB+7)              /* I---- */
  29.  
  30. /* Can use follow TAGS of the bgui.library */
  31. /* FRM_BackPen                                (ISG--)      */
  32. /* FRM_SelectedBackPen                        (ISG--)      */
  33. /* FRM_BackFill                               (ISG--)      */
  34. /* FRM_Recessed                               (ISG--)      */
  35.  
  36.  
  37. /* Definitions */
  38. #define BSEQ_J                  "\x2"
  39.  
  40.  
  41. /* Prototypes */
  42. Class *InitButClass( void );
  43. BOOL FreeButClass( Class * );
  44.  
  45.  
  46. /*
  47. **  Macros
  48. **/
  49. #define ButObject( class )   NewObject( class, NULL
  50.  
  51. #define But( class, label, id )\
  52.     ButObject( class ),\
  53.         BUT_Label,      label,\
  54.         BUT_Underscore, '_',\
  55.         GA_ID,          id,\
  56.         ButtonFrame,\
  57.     EndObject
  58.  
  59.  
  60. #define ButClip( class, label, id )\
  61.     ButObject( class ),\
  62.         BUT_Label,      label,\
  63.         BUT_ClipText,   TRUE,\
  64.         BUT_Underscore, '_',\
  65.         GA_ID,          id,\
  66.         ButtonFrame,\
  67.     EndObject
  68.  
  69. #define ButJustify( class, label, id )\
  70.     ButObject( class ),\
  71.         BUT_Label,      label,\
  72.         BUT_Justify,    TRUE,\
  73.         BUT_Underscore, '_',\
  74.         GA_ID,          id,\
  75.         ButtonFrame,\
  76.     EndObject
  77.  
  78. #define ButClipJust( class, label, id )\
  79.     ButObject( class ),\
  80.         BUT_Label,      label,\
  81.         BUT_Justify,    TRUE,\
  82.         BUT_ClipText,   TRUE,\
  83.         BUT_Underscore, '_',\
  84.         GA_ID,          id,\
  85.         ButtonFrame,\
  86.     EndObject
  87.  
  88.  
  89. #endif
  90.